package com.spring.activity;

import android.app.Activity;
import android.os.Build;
import android.os.Bundle;

import com.spring.gowhere.R;
import com.spring.util.StatusBar;
import com.spring.util.SystemBarTintManager;

/**
 * Created by Administrator on 2016/8/31 0031.
 */
public class BaseActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //判断当前SDK版本号，如果是4.4以上，就是支持沉浸式状态栏的
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            new StatusBar(true, this);
            SystemBarTintManager tintManager = new SystemBarTintManager(this);
            tintManager.setStatusBarTintEnabled(true);
            tintManager.setStatusBarTintResource(R.color.deep_bule);//通知栏所需颜色
        }
    }

}
